package appapi.service.impl;

import appapi.service.VersionService;
import org.springframework.stereotype.Service;
import javax.annotation.Resource;
import appapi.entity.Zhongjiao.VersionEntity;
import appapi.dao.VersionMapper;

import java.util.List;

/**
 * @version: java version 1.8
 * @Author: Ygp Work
 * @description:
 * @date: 2023-08-21 16:36
 */

@Service
public class VersionServiceImpl implements VersionService {

    @Resource
    private VersionMapper versionMapper;

    @Override
    public int deleteByPrimaryKey(Integer id) {
        return versionMapper.deleteByPrimaryKey(id);
    }

    @Override
    public int insert(VersionEntity record) {
        return versionMapper.insert(record);
    }

    @Override
    public int insertSelective(VersionEntity record) {
        return versionMapper.insertSelective(record);
    }

    @Override
    public VersionEntity selectByPrimaryKey(Integer id) {
        return versionMapper.selectByPrimaryKey(id);
    }

    @Override
    public int updateByPrimaryKeySelective(VersionEntity record) {
        return versionMapper.updateByPrimaryKeySelective(record);
    }

    @Override
    public int updateByPrimaryKey(VersionEntity record) {
        return versionMapper.updateByPrimaryKey(record);
    }

    @Override
    public List<VersionEntity> selectAll() {
        return versionMapper.selectAll();
    }


}
